package com.example.chatrecommendation.bean.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Jasmine-drs
 * @date 2024/5/22 14:45
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Messages {
	@ApiModelProperty("角色")
	private String role;
	@ApiModelProperty("内容")
	private String content;

	@Override
	public String toString() {
//		{"role":"system","content":"You are a helpful assistant."},
		return "{\"role\":\"" + role + "\",\"content\":\"" + content + "\"}";
	}
}
